.\" Copyright (c) 2017, Martin Kepplinger <martink@posteo.de>
.\"
.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, see
.\" <http://www.gnu.org/licenses/>.
.\" %%%LICENSE_END
.\"
.TH TS_GET_EVENTPATH 3  "" "" "tslib"
.SH NAME
ts_get_eventpath \- get the path to the currently opened touchscreen device file
.SH SYNOPSIS
.nf
.B #include <tslib.h>
.sp
.BI "char *ts_get_eventpath(struct tsdev *tsdev);"
.sp
.fi

.SH DESCRIPTION
.BR ts_get_eventpath ()
This function returns the path to the touchscreen device file that was
opened with ts_open().
In case ts_setup() is used instead of ts_open() directly, it is often
not known to the application in advance.

.RE
.SH RETURN VALUE
This function returns the path to the touchscreen device file that was opened with ts_open(). It returns NULL in case of failure.

.SH SEE ALSO
.BR ts_setup (3),
.BR ts_read (3),
.BR ts.conf (5)
